package com.infore.siteManagement.PlatformInvocationServices.remoteService;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.infore.siteManagement.util.ResultEntity;

@FeignClient(name = "DataReceiving-Service", url="localhost:61001/DataReceiving-Service/")
public interface IDataReceivingService {
	
	@GetMapping(value = "queryRealTimeWaterQualitySort")
	public ResultEntity queryRealTimeWaterQualitySort(@RequestParam("mn")String mn);
	
	@GetMapping(value = "HourDataController/queryRowToColRealTimeData")
    public ResultEntity queryRowToColRealTimeData(@RequestParam("mn")String mn, @RequestParam("pageNum")String pageNum, 
            @RequestParam("pageSize")String pageSize);
	
	/**获取小时数据**/
	@RequestMapping(value = "HourDataController/queryHourDatas", method = RequestMethod.POST)
	@ResponseBody
	ResultEntity queryHourDatas(@RequestParam String stationCode,@RequestParam String factorCode,@RequestParam String startTime,@RequestParam String endTime);
	
	/**自动站----获取小时数据**/
	@RequestMapping(value = "HourDataController/audioSingReport", method = RequestMethod.POST)
	@ResponseBody
	ResultEntity audioSingReport(@RequestParam String stationCode,@RequestParam String factorCode,@RequestParam String startTime,@RequestParam String endTime);

	/**自动站----获取小时数据**/
	@RequestMapping(value = "HourDataController/audioMoreReport", method = RequestMethod.POST)
	@ResponseBody
	ResultEntity audioMoreReport(@RequestParam String stationCode,@RequestParam String factorCode,@RequestParam String startTime,@RequestParam String endTime);

	/**综合应用---分组获得实时数据**/
	@RequestMapping(value = "HourDataController/realDataGroup", method = RequestMethod.POST)
	@ResponseBody
	ResultEntity realDataGroup(@RequestParam String stationCode,@RequestParam String factorCode,@RequestParam String startTime,@RequestParam String endTime);

	/**综合应用---不分组获得实时数据**/
	@RequestMapping(value = "HourDataController/realData", method = RequestMethod.POST)
	@ResponseBody
	ResultEntity realData(@RequestParam String stationCode,@RequestParam String factorCode,@RequestParam String startTime,@RequestParam String endTime);
	
	/** 获取日数据集合 **/
	@RequestMapping(value = "HourDataController/getDayData", method = RequestMethod.GET)
    @ResponseBody
	ResultEntity getDayData();
	
	/** 更新小时数据标识 **/
	@RequestMapping(value = "HourDataController/updateHourFlag", method = RequestMethod.GET)
    @ResponseBody
    ResultEntity updateHourFlag();
	
	/** 获取未统计的周数据时间 **/
    @RequestMapping(value = "HourDataController/getUnStatisticsWeekDataTime", method = RequestMethod.GET)
    @ResponseBody
    ResultEntity getUnStatisticsWeekDataTime();
	
	/** 获取未统计的月数据时间 **/
    @RequestMapping(value = "HourDataController/getUnStatisticsMonthDataTime", method = RequestMethod.GET)
    @ResponseBody
    ResultEntity getUnStatisticsMonthDataTime();
    
    /** 获取未统计的季度数据时间 **/
    @RequestMapping(value = "HourDataController/getUnStatisticsQuarterDataTime", method = RequestMethod.GET)
    @ResponseBody
    ResultEntity getUnStatisticsQuarterDataTime();
    
    /** 获取未统计的年数据时间 **/
    @RequestMapping(value = "HourDataController/getUnStatisticsYearDataTime", method = RequestMethod.GET)
    @ResponseBody
    ResultEntity getUnStatisticsYearDataTime();

//    /**获取空气站未统计分钟数据**/
//    @RequestMapping(value = "HourDataAIRController/queryHourData", method = RequestMethod.GET)
//    @ResponseBody
//    ResultEntity queryHourData();
//    
//    /**更新空气站未统计分钟数据**/
//    @RequestMapping(value = "HourDataAIRController/updateHourData", method = RequestMethod.GET)
//    @ResponseBody
//    ResultEntity updateHourData();

}